def fibonacci_iterative(n):
    """打印前n个斐波那契数"""
    a, b = 0, 1
    for _ in range(n):
        print(a, end=" ")
        a, b = b,  a + b


fibonacci_iterative(int(input("范围?")))
